Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WatsonX metrics test #985

Merged
merged 11 commits into from
Oct 26, 2023

Conversation

bdattoma
Copy link
Contributor

This PR is adding a test for checking model metrics for WatsonX/Kserve.

The PR checks:

  1. metrics with tgi_, caikit_ and istio_ are present in the Openshift metrics
  2. user can get # of inference requests over defined time period , # of successful inference requests over defined time period and CPU Utilization

This is a base for the final test which should check that all the expected metrics are present (waiting for a final list) and will check also more derived metrics (_waiting for a final list and their formulas)

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robocop found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

Signed-off-by: bdattoma <[email protected]>
@bdattoma bdattoma self-assigned this Oct 24, 2023
@bdattoma bdattoma added needs testing Needs to be tested in Jenkins new test New test(s) added (PR will be listed in release-notes) labels Oct 24, 2023
Signed-off-by: bdattoma <[email protected]>
@bdattoma bdattoma requested a review from FedeAlonso October 24, 2023 15:00
FedeAlonso
FedeAlonso previously approved these changes Oct 25, 2023
Copy link
Contributor

@FedeAlonso FedeAlonso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bdattoma
Copy link
Contributor Author

verified at rhods-ci-pr-test/2064 SUCCESS

@bdattoma bdattoma added verified This PR has been tested with Jenkins and removed needs testing Needs to be tested in Jenkins labels Oct 25, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bdattoma bdattoma requested a review from FedeAlonso October 25, 2023 14:54
@tarukumar
Copy link
Contributor

@bdattoma why don't you enable metric in Suite setup. I don't see any harm in that those are cluster wide configuration and having it enable by default will be good idea.

@bdattoma
Copy link
Contributor Author

@bdattoma why don't you enable metric in Suite setup. I don't see any harm in that those are cluster wide configuration and having it enable by default will be good idea.

I thought to have scenarios running without metrics enabled, since users won't be forced to enable them. But yeah I can add it to suite setup, do you mind if we move it there in another PR? this one has been already tested

Copy link
Contributor

@FedeAlonso FedeAlonso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bdattoma bdattoma merged commit e31af11 into red-hat-data-services:master Oct 26, 2023
jgarciao pushed a commit to jgarciao/ods-ci that referenced this pull request Nov 6, 2023
* add initial test for model metrics

Signed-off-by: bdattoma <[email protected]>

* add checks for query type and cpu usage

Signed-off-by: bdattoma <[email protected]>

* remove commented code

Signed-off-by: bdattoma <[email protected]>

* add kw to protected list

Signed-off-by: bdattoma <[email protected]>

* add docs and minor fixes

Signed-off-by: bdattoma <[email protected]>

* add polarion id

Signed-off-by: bdattoma <[email protected]>

* fix some alerts

Signed-off-by: bdattoma <[email protected]>

* increase metric check stability

Signed-off-by: bdattoma <[email protected]>

* fix expected model response

Signed-off-by: bdattoma <[email protected]>

---------

Signed-off-by: bdattoma <[email protected]>
ChughShilpa pushed a commit to ChughShilpa/ods-ci that referenced this pull request Nov 28, 2023
* add initial test for model metrics

Signed-off-by: bdattoma <[email protected]>

* add checks for query type and cpu usage

Signed-off-by: bdattoma <[email protected]>

* remove commented code

Signed-off-by: bdattoma <[email protected]>

* add kw to protected list

Signed-off-by: bdattoma <[email protected]>

* add docs and minor fixes

Signed-off-by: bdattoma <[email protected]>

* add polarion id

Signed-off-by: bdattoma <[email protected]>

* fix some alerts

Signed-off-by: bdattoma <[email protected]>

* increase metric check stability

Signed-off-by: bdattoma <[email protected]>

* fix expected model response

Signed-off-by: bdattoma <[email protected]>

---------

Signed-off-by: bdattoma <[email protected]>
ChughShilpa pushed a commit to ChughShilpa/ods-ci that referenced this pull request Jan 2, 2024
* add initial test for model metrics

Signed-off-by: bdattoma <[email protected]>

* add checks for query type and cpu usage

Signed-off-by: bdattoma <[email protected]>

* remove commented code

Signed-off-by: bdattoma <[email protected]>

* add kw to protected list

Signed-off-by: bdattoma <[email protected]>

* add docs and minor fixes

Signed-off-by: bdattoma <[email protected]>

* add polarion id

Signed-off-by: bdattoma <[email protected]>

* fix some alerts

Signed-off-by: bdattoma <[email protected]>

* increase metric check stability

Signed-off-by: bdattoma <[email protected]>

* fix expected model response

Signed-off-by: bdattoma <[email protected]>

---------

Signed-off-by: bdattoma <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new test New test(s) added (PR will be listed in release-notes) verified This PR has been tested with Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants